package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 练习题目表
 * @TableName t_exercises
 */
@TableName(value ="t_exercises")
@Data
public class Exercises implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 题目标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 题目内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 题目类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 选择题选项数组
     */
    @TableField(value = "options")
    private String options;

    /**
     * 正确答案
     */
    @TableField(value = "answer")
    private String answer;

    /**
     * 题目解析
     */
    @TableField(value = "explanation")
    private String explanation;

    /**
     * 题目难度
     */
    @TableField(value = "difficulty")
    private String difficulty;

    /**
     * 创建用户id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 知识点
     */
    @TableField(value = "knowledgePoint")
    private String knowledgePoint;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}